PowerSNMP for .NET
GenerateLocalAuthenticationKey(Byte[],Byte[]) Method




The EngineId to use for key generation. Cannot be a null reference (Nothing in Visual Basic) or empty.
The authentication password to use for key generation. Cannot be a null reference (Nothing in Visual Basic) or empty.
Generates a local authentication key using the specified engine ID and authentication password.
Syntax
Public Overloads Function GenerateLocalAuthenticationKey( _
   ByVal engineId() As Byte, _
   ByVal authenticationPassword() As Byte _
) As Byte()
Dim instance As User
Dim engineId() As Byte
Dim authenticationPassword() As Byte
Dim value() As Byte
 
value = instance.GenerateLocalAuthenticationKey(engineId, authenticationPassword)
public byte[] GenerateLocalAuthenticationKey( 
   byte[] engineId,
   byte[] authenticationPassword
)
public: byte[]* GenerateLocalAuthenticationKey( 
   byte[]* engineId,
   byte[]* authenticationPassword
) 
public:
array<byte>^ GenerateLocalAuthenticationKey( 
   array<byte>^ engineId,
   array<byte>^ authenticationPassword
) 

Parameters

engineId
The EngineId to use for key generation. Cannot be a null reference (Nothing in Visual Basic) or empty.
authenticationPassword
The authentication password to use for key generation. Cannot be a null reference (Nothing in Visual Basic) or empty.

Return Value

A byte array containing the generated local authentication key dictated by KeyExpansionAlgorithm.
Remarks
The generated key is derived from the provided engineid and password. The generated key will automatically be added to the LocalAuthenticationKeys dictionary if CacheSecurityKeys is True.
See Also

Reference

User Class
User Members
Overload List


PowerSNMP for .NET Documentation Version 8.1
© 2026 Dart Communications. All Rights Reserved.
Send comments on this topic